﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMPLib;
using System.Windows.Forms;

namespace 小星星
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            while (true)
            {
                //接收控制台输入值
                ConsoleKeyInfo ck = Console.ReadKey(true);//这里填了true，就不会显示输入的值
                char c = ck.KeyChar;
                Console.WriteLine(c);
                WindowsMediaPlayer wm = new WindowsMediaPlayer();
                // wm.URL = Application.StartupPath + @"\音符\钢琴12345678\" + c + ".mp3";
                // wm.URL = Application.StartupPath + @"\.\.\音符\钢琴12345678\" + c + ".mp3";
                //wm.URL = @"D:\vs2019c#代码\小星星\音符\钢琴12345678\" + c + ".mp3";
                //wm.URL = @"C:\Users\的广泛广泛\Desktop\钢琴12345678\" + c + ".mp3";
                /* Console.Beep(800, 500);*/
                Console.WriteLine(Application.StartupPath + @"../../音符\钢琴12345678\" + c + ".mp3");
                string path = @"\音符\钢琴12345678\" + c + ".mp3";
                string path1 = string.Format(@"{0}..\..\..\", Application.StartupPath);
                Console.WriteLine(path1);
                Console.WriteLine(System.IO.Directory.GetCurrentDirectory() + "..\\..\\音符\\钢琴12345678\\ " + c + ".mp3");
                //提示音
            }
        }
    }
}